package first.c01;

public class FirstMainTest {

	public static Customer init() {

		Movie movie = new Movie("深入理解计算机系统(原书第2版)", Movie.CHILDRENS);
		Movie movie2 = new Movie("深入java虚拟机", Movie.NEW_RELEASE);
		Movie movie3 = new Movie("重构:改善既有代码的设计 ", Movie.REGULAR);

		Rental rental = new Rental(movie, 3);
		Rental rental2 = new Rental(movie2, 4);
		Rental rental3 = new Rental(movie3, 5);

		Customer customer = new Customer("姚茗");
		customer.addRental(rental);
		customer.addRental(rental2);
		customer.addRental(rental3);

		return customer;
	}

	public static void main(String[] args) {

		Customer customer = init();
		String result = customer.statement();
		// String result=customer.htmlStatement();
		System.out.println(result);

	}

}
